import 'package:fish_redux/fish_redux.dart';

enum AnswerMarkAction {
  onMark,
  progress,
  rating,
  onReWrite,
}

class AnswerMarkActionCreator {
  static Action onMark() {
    return Action(AnswerMarkAction.onMark);
  }

  static Action progress(int progress) {
    return Action(AnswerMarkAction.progress, payload: progress);
  }

  static Action rating(int index, double rating) {
    return Action(AnswerMarkAction.rating,
        payload: {'index': index, 'rating': rating});
  }

  static Action onReWrite() {
    return Action(AnswerMarkAction.onReWrite);
  }
}
